package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 发型档案图片
 *
 * @author oxiny
 */
@Builder
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("d_hair_archive_img")
public class HairArchiveImg extends Model<HairArchiveImg> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 档案ID
     */
    private Integer archiveId;

    /**
     * 照片路径
     */
    private String imgUrl;

    /**
     * 喜欢该照片
     */
    private Boolean favorite;

    /**
     * 保留字段, 照片类型 0正面 1侧面 2后面
     */
    private Integer type;

    /**
     * 逻辑删除
     */
    @ApiModelProperty(value = "逻辑删除", hidden = true)
    private Boolean deleted;

    private Date addTime;

    private Date updateTime;
}
